package mapengine.building
{
	import core.log.GameLogType;
	import core.log.GameLogger;
	
	import isoengine.interfaces.IMapObjectData;
	
	import values.item.building.ModuleFunctionMapBuildingItemValue;
	
	import view.component.menu.EnlistBuildingMenu;

	public class ModuleFunctionMapBuilding extends MapBuilding
	{
		public function ModuleFunctionMapBuilding(descriptor:Object=null)
		{
			super(descriptor);
		}
		
		private var vo:ModuleFunctionMapBuildingItemValue;
		
		public function get moduleFunctionValue():ModuleFunctionMapBuildingItemValue
		{
			return vo;
		}
		
		override public function set objectData(value:IMapObjectData):void
		{
			vo = value as ModuleFunctionMapBuildingItemValue;
			
			super.objectData = value;
		}
		
		override protected function get menuReference():Class
		{
			return EnlistBuildingMenu;
		}
	}
}